const folderNameMap = {
  1: 'user',
  2: 'scenic',
  3: 'community',
};

export const generateFileName = (file: Express.Multer.File) => {
  const uniqueSuffix = `${Date.now()}-${Math.round(Math.random() * 1e9)}`;
  return `${uniqueSuffix}-${file.originalname}`;
};

export const genFolderName = (type: string) => {
  return folderNameMap[+type] || '';
};
